#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>


int my_strcmp(const char*arr1,const char*arr2)
{
	while (*arr1-*arr2)
	{
		if (*arr1 < *arr2)
		{
			return -1;
		}
		else if(*arr1>*arr2)
		{
			return 1;
		}
		arr1++;
		arr2++;
	}
	return 0;
}

int main()
{
	char* arr = "zfdohal";
	char* arr1 = "zfdohal";
	int a=my_strcmp(arr, arr1);
	printf("%d", a);
	return 0;
}



	
